package com.yyk.dzvisit.controller;


import com.yyk.dzvisit.vo.ApiResponse;

/**
 * @Author: ligui
 * @Date: 2020/9/28 22:19
 */
public class BaseController {

    /**
     * 构建通用返回对象
     *
     * @param results .
     * @param <T> .
     *
     * @return .
     */
    public <T> ApiResponse<T> successApiResponse(T results) {
        return new ApiResponse<>(results);
    }

    /**
     * 构建通用返回对象
     *
     * @return .
     */
    public ApiResponse successApiResponse() {
        return new ApiResponse();
    }
}
